package com.fh.fruit.service.order.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fh.dao.DaoSupport;
import com.fh.entity.Page;
import com.fh.fruit.service.order.BusinessOrdersManager;

@Service("businessOrdersService")
public class BusinessOrdersService implements BusinessOrdersManager {

	 @Resource(name = "daoSupport")
	    private DaoSupport dao;

		@SuppressWarnings("unchecked")
		public List<Map<String, Object>> listBusinessOrders(Page page) throws Exception {
			return (List<Map<String, Object>>) dao.findForList("BusinessOrdersMapper.getBusinessOrderslistPage", page);
		}

		public List<Map<String, Object>> businessOrdersCount(Page page) throws Exception {
			// TODO Auto-generated method stub
			return  (List<Map<String, Object>>) dao.findForMap("BusinessOrdersMapper.businessOrdersCount", page);
		}

		/**
		 * 到出
		* @author 葛欢欢
		* @version 2017.11.30 16:40 
		* @param page
		* @return
		* @throws Exception
		 */
		public List<Map<String, Object>> listBusinessOrdersExcl(Page page) throws Exception {
			return (List<Map<String, Object>>) dao.findForList("BusinessOrdersMapper.getBusinessOrderslist", page);
		}
	
}
